- content_for :meta do
  %meta{:name => "Description", :content => "Here's a listing of my albums"}
  %meta{:name => "Abstract", :content => "Jetty Rae's Albums"}
  %meta{:name => "Keywords", :content => "albums, jetty rae"}
- content_for :title do
  = "- albums"
%div.heading
  %img.heading{:src => "/images/headings/sections/my_songs.jpg", :title => "My Songs", :alt => "My Songs"}
%table.albums
  - @albums.each do |album|
    - unless album.songs.empty?
      %tr
        %td.song_header
          %table.album_index_header
            %tr
              %td
                %a{:href => album_url(album)}
                  %h2.album_name=album.name
              %td
                %h2.album_year= " &nbsp;(#{album.year})"
        - if album.artwork 
          %td.alongside_image_for_album{:rowspan => "2"}
            %a{:href => album_url(album)}
              %img.album_artwork_thumb{:src => album.artwork.public_filename(:thumb)}
      %tr  
        %td.song_header
          %table.songs
            - album.songs.sort_by{|song| song.track}.each do |song|
              %tr
                %td.song_track= song.track.to_s + ". "
                %td.song_name
                  %a{:href => song_url(song)}=song.name
                - if song.downloadable?
                  %td.play_song
                    %object{:height => "17", :width => "17", :data => "/assets/button/musicplayer.swf?&b_colors=80FF00,257b00,80FF00,FF0000&playlist_url=" + song_url(song) + ".xml", :type => "application/x-shockwave-flash"}
                      %param{:value => "/assets/button/musicplayer.swf?playlist_url=" + song_url(song) + ".xml", :name => "movie"}
                      %img{:height => "17", :width => "17", :alt => "play", :src => "/assets/noflash.gif"}
                    %span.download_and_buy_song
                      |
                      %a{:href => song.public_filename, :title => "Download " + song.name}
                        Download
                      - if song.purchasable?
                        or
                        %a{:href => song.purchase_link, :title => "Buy " + song.name} Buy